package com.fjwt.gz.service.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fjwt.gz.db.entity.MchGroupMchEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fjwt.gz.db.dto.PointDTO;
import com.fjwt.gz.db.vo.MchGroupMchVO;
import com.fjwt.gz.db.vo.MchInfoVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 商圈商户关联表 Mapper 接口
 * </p>
 *
 * @author shiyonghao
 * @since 2025-04-09
 */
public interface MchGroupMchMapper extends BaseMapper<MchGroupMchEntity> {


    /**
     * 运营端商圈中存在的商户
     * @param page
     * @param groupNo
     * @return
     */
    IPage<MchGroupMchVO> selectGroupMch(IPage page, @Param("groupNo") String groupNo, @Param("mchNo") String mchNo, @Param("mchName") String mchName);

    /**
     * 获取商圈中的商家列表
     * @return
     */
    IPage<MchInfoVO> findMchInfoByGroupId(IPage iPage, @Param("groupNo")String groupNo, @Param("location") PointDTO location, @Param("mchNo")String mchNo, @Param("mchName")String mchName);


    /**
     * 获取商家详情
     * @param mchNo
     * @return
     */
    MchInfoVO findMchInfoVO(@Param("mchNo") String mchNo);
}
